﻿using RepositoryDefinition;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ForumBL
{
    public class SectionBL
    {
        ISectionRepository sectionContext;

        public SectionBL()
        {
            sectionContext = IOC.Factory.GetRepository().GetSectionRepository();
        }
        public List<ForumDomainModels.Section> GetAllSections()
        {
            List<ForumDomainModels.Section> sections = sectionContext.GetAllSections();
            return sections;
        }
    }
}
